﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            a();
            b();
            c();
        }
        static void a()
        {
            Student s = new Student(1,"张三",22);
            s.will();
            Console.WriteLine("------------------------------------");
        }
        static void b()
        {
            Book b = new Book(1,"三国演义",100,"中央出版社","罗贯中");
            b.will1();
            Console.WriteLine("------------------------------------");
        }
        static void c()
        {
            User u = new User(123, "关羽", 666);
            u.will2();
            Console.WriteLine("------------------------------------");
        }
    }
}
